import request from '@/utils/request.js'

//获取所有教室信息
export const getAllRoom = (queryParams)=>{
    return request.get('/teach-system/admin/getAllClassroom',{params:queryParams});
}

//管理员删除教室信息
export const deleteRoom = (id)=>{
    return request.delete('/teach-system/admin/deleteClassroomById/'+id);
}

//管理员添加教室
export const addRoom=(roomAdd)=>{
    return request.post('/teach-system/admin/addClassroom',roomAdd)
}